﻿#pragma once
// Copyright (c) lanyeo 2020-2021
// Licenced under MIT license. See https://opensource.org/licenses/MIT for details.
// code style
// 1. use forward declaration (尽可能使用前置声明)
// 2. include file sequence [other project>c>c++>third>self project]
// 

#include <core/rpc/rpc_interface.h>
#include <core/rpc/rpc_helper.h>

#include "player_info.h"


class IPlayerManager;

class IPlayer
{
public:
    virtual bool Init(IPlayerManager* p) = 0;
    virtual bool Login() = 0;
    virtual void AutoSave() = 0;
    virtual void Logout() = 0;
    virtual void Destroy() = 0;
};

class IPlayerManager : public IRmiManager
{
public:
    virtual const PlayerConf* cfg() = 0;
    Annotation(@RMI)
    virtual int rc_test(int a, int b) = 0;
};